import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'moneyFormat',
})
// 实现了接口必须有对应的实现体 implements PipeTransform
export class MoneyFormatPipe implements PipeTransform {
  transform(value: unknown, ...args: unknown[]): unknown {
    return `￥${value}`;
  }
}
